package cn.anlaser.service;

import java.util.List;

import cn.anlaser.entity.SimpleEntity;
import cn.anlaser.form.SimpleForm;
import cn.anlaser.repository.SimpleRepository;

public interface SimpleService<Form extends SimpleForm, Repository extends SimpleRepository<Entity>, Entity extends SimpleEntity>
		extends CommonService<Form, Repository, Entity> {
	public Entity findByCodeOne(String code);

	public Entity findByCode(String code);

	public Entity findByNameOne(String name);

	public List<Entity> findsByName(String name);

	public List<Entity> findsByCode(String code);

	/**
	 * @param id
	 */
	public void logicDelete(Long id);

}
